package com.lrkj.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.lrkj.common.annotation.Excel;
import com.lrkj.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 会计期间对象 sys_fiscal_period
 *
 * @author yajun_ren
 * @date 2021-08-02
 */
public class FiscalPeriod extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String id;

    /** 会计年度 */
    @Excel(name = "会计年度")
    private String fiscalYear;

    /** 会计期间 */
    @Excel(name = "会计期间")
    private String period;

    /** 会计期间开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会计期间开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date periodBeginTime;

    /** 会计期间结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "会计期间结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date periodFinishTime;

    /** 显示顺序 */
    @Excel(name = "显示顺序")
    private Integer orderNum;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setFiscalYear(String fiscalYear)
    {
        this.fiscalYear = fiscalYear;
    }

    public String getFiscalYear()
    {
        return fiscalYear;
    }
    public void setPeriod(String period)
    {
        this.period = period;
    }

    public String getPeriod()
    {
        return period;
    }
    public void setPeriodBeginTime(Date periodBeginTime)
    {
        this.periodBeginTime = periodBeginTime;
    }

    public Date getPeriodBeginTime()
    {
        return periodBeginTime;
    }
    public void setPeriodFinishTime(Date periodFinishTime)
    {
        this.periodFinishTime = periodFinishTime;
    }

    public Date getPeriodFinishTime()
    {
        return periodFinishTime;
    }
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum()
    {
        return orderNum;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("fiscalYear", getFiscalYear())
            .append("period", getPeriod())
            .append("periodBeginTime", getPeriodBeginTime())
            .append("periodFinishTime", getPeriodFinishTime())
            .append("orderNum", getOrderNum())
            .toString();
    }
}
